package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.UserBankDto;
import com.zf.yichat.model.UserBank;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBankMapper extends FsMapper<UserBank> {


    /**
     * 根据userId查询银行卡信息
     * @param userId
     * @return
     */
    UserBank selectByUserId(@Param("userId") Long userId);

    /**
     * 查询用户银行卡列表
     * @param userId
     * @param name
     * @param mobile
     * @param idNumber
     * @param bankName
     * @param childBankname
     * @param bankNumber
     * @param recommendCode
     * @return
     */
    List<UserBankDto> queryPageList(@Param("userId") Long userId, @Param("name") String name, @Param("mobile") String mobile,
                                    @Param("idNumber") String idNumber, @Param("bankName") String bankName,
                                    @Param("childBankname") String childBankname,@Param("bankNumber") String bankNumber,
                                    @Param("recommendCode") String recommendCode,@Param("status") Integer status);
}